import * as types from '../mutation-types'
import thirdService from 'service/thirdService.js'

const state = {
    studentAddress: {},

}

const getters = {
    studentAddress: () => state.studentAddress,


}
const actions = {
    //学生地址
    async getStudentAddress({ commit }, data) {
        let addressData = await thirdService.getStudentAdress(data)
        commit(types.STUDENT_ADDRESS, addressData)
    }


}
const mutations = {
    [types.STUDENT_ADDRESS](state, studentAddress) {
        state.studentAddress = studentAddress
    }

}
export default {
    state,
    getters,
    actions,
    mutations
}